﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RVBike
{
    class Singleton<T>
    {
        private static Object m_oInstance = null;

        public Singleton()
        {
            m_oInstance = this;
        }

        public static T Instance()
        {
            return (T)m_oInstance;
        }

        public static void Dispose()
        {
            m_oInstance = null;
        }
    }
}